﻿<local:DocumentBase x:Class="WPFExcelReport.JLTWBBDAT"
         xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
         xmlns:local="clr-namespace:ReflectionStudio.Components.UserControls;assembly=ReflectionStudio.Core" 
         xmlns:ucd="clr-namespace:ReflectionStudio.Controls;assembly=ReflectionStudio.Controls"  
        xmlns:ex="clr-namespace:WPFExcelReport.Controls;assembly=ExControls"
         Name="TV"
        Loaded="Window_Loaded" Width="800" Height="600">
    <local:DocumentBase.Resources>
        <ucd:BoolToVisibilityConverter x:Key="bv"/>
        <ucd:GB2312Convert8859P1  x:Key="gb2312"/>
    </local:DocumentBase.Resources>
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="auto"/>
            <RowDefinition Height="1*"/>
            <RowDefinition Height="auto"/>
        </Grid.RowDefinitions>

        <StackPanel Grid.Row="0">
            <WrapPanel>
                <Label Content="起始日期" Margin="20,0,0,0"/>
                <DatePicker Name="dpStart" Height="auto" Width="auto" Margin="10,0,0,0"/>
                <Label Content="结束日期" Margin="20,0,0,0"/>
                <DatePicker Name="dpEnd" Height="auto" Width="auto" Margin="10,0,0,0"/>
                <TextBox Name="txtWBBLB" Text="CP" Width="AUTO" Margin="20,0,0,0"/>
                <Button Name="btnSelect" Width="100" Margin="20,0,0,0" Content="查询"/>
                <Button  Name="btnSendToExcel" Width="100" Margin="20,0,0,0" Content="导出"/>

            </WrapPanel>
        </StackPanel>
        <DataGrid Grid.Row="1" Name="dg1" HorizontalAlignment="Left" AreRowDetailsFrozen="True" AutoGenerateColumns="False" CanUserDeleteRows="False">
            <DataGrid.Columns>
                <DataGridTextColumn Binding="{Binding WBBART}"  Header="品种号"/>
                <DataGridTextColumn Binding="{Binding WBBFARBE}"  Header="花型号"/>
                <DataGridTextColumn Binding="{Binding WBBLONGFIRST}"  Header="期初数量"/>
                <DataGridTextColumn Binding="{Binding WBBLONGADD}"  Header="增加数量"/>
                <DataGridTextColumn Binding="{Binding WBBLONGREDUCE}"  Header="减少数量"/>
                <DataGridTextColumn Binding="{Binding WBBLONGEND}"  Header="期末数量"/>
            </DataGrid.Columns>
        </DataGrid>
    </Grid>
</local:DocumentBase>
